<?php foreach($contents as $order=>$content):?>
    <?php if($content instanceof Content):?>
        <li class="content_list_item list-group-item">
            <h4><?php echo $content->getDisplayTitle();?></h4>
            <p>
                <?php echo $content->getDisplayText();?>
            </p>
            <?php if( ! empty($content->choices)):?>
                <form role="form" class="submit_form">
                    <input type="hidden" name="Content[id]" value="<?php echo $content->getId();?>"/>
                    <div class="message">
                        
                    </div>
                    <p class="explain" style="display: none;">
                        
                    </p>
                    <?php foreach($content->choices as $k=>$c):?>
                    <?php if($c instanceof Choice):?>
                        <div class="radio">
                            <label>
                                <input type="radio" name="Content[choiceIds][]" id="<?php echo $c->getId();?>" value="<?php echo $c->getId();?>">
                                <?php echo $k+1?>. <?php echo $c->getDisplayText();?>
                            </label>
                        </div>
                    <?php endif;?>
                    <?php endforeach;?>
                    <button type="submit" class="btn btn-default">提交</button>
                </form>
            <?php endif;?>
        </li>
    <?php endif;?>
<?php endforeach;?>


